package com.chwn.curiousdiary.gloable;

/**
 * Created by Myshikin on 2017/4/17.
 */

public class CustomEvent {


    public static final int STORY_PLAY_ERROR = 22;
    public static final int FROM_LOOK        = 1;

    public static final int START_STORY_PLAY = 2;

    public static final int STORY_PLAY_POSITION_CHANGE = 3;
    public static final int ClOSE_SELF                 = 888;
    public static final int MAIN_NOTIFY      = 555;
    public static final int GET_PLAY_STORY   = 789;
    public static final int SEND_PLAY_STORY  = 987;
    public static final int PLAY_STORY_DATA  = 998;
    public static final int SHARE_STORY      = 4;
    public static final int UPDATE_COLLECT   = 5;
    public static final int TIMMING_START    = 6;
    public static final int TIMMING_STOP     = 7;
    public static final int UPDATE_USER_INFO = 8;
    public static final int UPDATE_COIN_INFO = 9;

    private int state;

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    private int    position;
    private Object message;
    private String title;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Object getMessage() {
        return message;
    }

    public void setMessage(Object message) {
        this.message = message;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public CustomEvent(int state) {
        this.state = state;
    }

    public CustomEvent(int state, int position) {
        this.state = state;
        this.position = position;
    }
}
